package com.cskaoyan.bean.wx.order.vo;

import com.cskaoyan.bean.pojo.OrderGoods;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Name : OrderDetailVo.java
 * @Time : 2021/8/15 19:51
 * @Author : Xfeng
 * @Software : IntelliJ IDEA
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderDetailVo {
    /**
     * orderInfo : {"orderStatusText":"未付款","consignee":"赵六","address":"安徽省 合肥市 瑶海区 软件新城二期","addTime":"2021-08-15 18:40:35","orderSn":"20210815338049","actualPrice":10356,"goodsPrice":11244,"mobile":"18566549962","couponPrice":888,"id":161,"freightPrice":0,"handleOption":{"cancel":true,"confirm":false,"rebuy":false,"pay":true,"comment":false,"delete":false,"refund":false}}
     * orderGoods : [{"productId":448,"addTime":"2021-08-15 18:40:35","orderId":161,"goodsId":1181056,"goodsSn":"12","updateTime":"2021-08-15 18:40:35","specifications":["3 4"],"number":1,"picUrl":"http://182.92.235.201:8083/wx/storage/fetch/rjhs8i29bfahd5hi7okm.jpg","deleted":false,"price":22,"comment":0,"id":220,"goodsName":"ok"},{"productId":447,"addTime":"2021-08-15 18:40:35","orderId":161,"goodsId":1181056,"goodsSn":"12","updateTime":"2021-08-15 18:40:35","specifications":["1 2"],"number":1,"picUrl":"http://182.92.235.201:8083/wx/storage/fetch/rjhs8i29bfahd5hi7okm.jpg","deleted":false,"price":111,"comment":0,"id":221,"goodsName":"ok"},{"productId":433,"addTime":"2021-08-15 18:40:35","orderId":161,"goodsId":1181053,"goodsSn":"987789","updateTime":"2021-08-15 18:40:35","specifications":["2"],"number":1,"picUrl":"http://182.92.235.201:8083/wx/storage/fetch/sbdcljutvg50wnemx73d.jpg","deleted":false,"price":11111,"comment":0,"id":222,"goodsName":"mm"}]
     */
    private OrderInfoEntity orderInfo;
    private List<OrderGoods> orderGoods;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class OrderInfoEntity {
        /**
         * orderStatusText : 未付款
         * consignee : 赵六
         * address : 安徽省 合肥市 瑶海区 软件新城二期
         * addTime : 2021-08-15 18:40:35
         * orderSn : 20210815338049
         * actualPrice : 10356.0
         * goodsPrice : 11244.0
         * mobile : 18566549962
         * couponPrice : 888.0
         * id : 161
         * freightPrice : 0.0
         * handleOption : {"cancel":true,"confirm":false,"rebuy":false,"pay":true,"comment":false,"delete":false,"refund":false}
         */
        private String orderStatusText;
        private String consignee;
        private String address;
        private Date addTime;
        private String orderSn;
        private BigDecimal actualPrice;
        private BigDecimal goodsPrice;
        private String mobile;
        private BigDecimal couponPrice;
        private Integer id;
        private BigDecimal freightPrice;
        private HandleOptionVo handleOption;

    }

}
